<!DOCTYPE html>
<html>
<head>



    <template file="Home/meta" />
    <template file="Home/css" />




</head>
<body>
<template file="Home/search" />

<div class="weui_navbar common-border-bottom" style="height:44px;">
    <div class="weui_navbar_item   <if condition="I('get.status') eq '1'"> active </if>    "

    >
        <a href="{:U('',array('status'=>1))}">待付款</a>
    </div>
    <div class="weui_navbar_item <if condition="I('get.status') eq '2'"> active </if> ">
        <a href="{:U('',array('status'=>2))}">待发货</a>
    </div>

<div class="weui_navbar_item <if condition="I('get.status') eq '3'"> active </if> ">
<a href="{:U('',array('status'=>3))}"> 已到货</a>
</div>

<div class="weui_navbar_item <if condition="I('get.status') eq '4'"> active </if> ">
<a href="{:U('',array('status'=>3))}"> 待收货</a>
</div>

    <div class="weui_navbar_item <if condition="I('get.status') eq '5'"> active </if> ">
        <a href="{:U('',array('status'=>4))}">待评价</a>
    </div>

<div class="weui_navbar_item <if condition="I('get.status') eq ''"> active </if> ">
<a href="{:U('')}">全部</a>
</div>
</div>

<volist name="_list" id="v" empty="没有相关信息">





    <div class="am-g  well    am-margin-bottom-sm  common-border-bottom ">







        <div class="am-cf  am-padding-0 am-margin-top-sm">

        <volist name="v['plist']" id="vo">


            <div class=" am-cf order-list-item     am-margin-vertical-sm    ">


                <div class="am-u-sm-4 am-text-center  list_img"><img src="{$vo.thumb}" class="am-img-responsive"></div>
                <div class="am-u-sm-8 am-text-xs">




                    <a href="{:U('Home/Product/show',array('id'=>$vo['product_id']))} " class="">
                        <h3 class="am-margin-0">
                            {$v.title}</h3>
                    </a>

                    <div class="am-cf am-text-sm">

                        <span class="am-u-sm-6 am-text-danger"> ￥


                            <switch name="$v['pay_type']" >
                                <case value="weixin">{$vo.price}</case>
                                <case value="qianbao">{$vo.qb_price}</case>
                                <default />{$vo.price}
                            </switch>


                        </span>
                        <span class="am-u-sm-6 am-text-right">  x {$vo.num} </span>



                    </div>






                </div>






            </div>


        </volist>

</div>




        <div class="am-block am-cf  am-padding-horizontal-sm am-text-xs am-text-right">

            <span class="am-fl">编号:{$v.order_sn}</span>
            <span class="am-fr"> 共计{$v.num}件商品  合计￥
                    <if condition="$v['sj_price_sum']">
                        {$v.sj_price_sum}

                        <else/>

                        {$v.price_sum}

                    </if>
</span>


        </div>







        <div class="  am-block am-cf am-margin-top-sm am-padding-sm common-border-top">

              <span class="am-fr ">
                  <a class="am-btn    btn-hui am-btn-xs" href="{:U('User/Order/show',array('order_sn'=>$v['order_sn']))}">查看</a>

            <if condition="$v[status] eq '1'">

                <a class="am-btn   btn-hui ajax-get  am-btn-xs" href="{:U('User/Order/del',array('order_sn'=>$v['order_sn']))}">取消订单</a>

  <a class="am-btn    btn-write am-btn-xs" href="{:U('User/Order/pay',array('order_sn'=>$v['order_sn']))}">立即付款</a>
             </if>


                    <if condition="$v[status] eq '2'">



                        <a class="am-btn   btn-hui ajax-get  am-btn-xs" href="{:U('User/Order/cui',array('order_sn'=>$v['order_sn']))}">催货</a>


                    </if>



                    <if condition="$v[status] eq '3'">

                        <a class="am-btn   btn-write ajax-get  am-btn-xs" href="{:U('User/Order/shouhuo',array('order_sn'=>$v['order_sn']))}">确认确认收货</a>


                    </if>


                   <!--<if condition="$v[status] eq '4'">-->

                       <!--<a class="am-btn   btn-write   am-btn-xs" href="{:U('User/Order/pingjia',array('order_sn'=>$v['order_sn']))}">评价</a>-->


                   <!--</if>-->



              </span>

        </div>







    </div>
</volist>


<div class="pages am-text-center">    {$Page}  </div>




<div data-am-widget="navbar" class="am-navbar am-cf am-navbar-index  common-border-top "
     id="">
    <template file="Home/bottom_nav" />
</div>

    <template file="Home/js" />











</body>
</html>